package com.lzqinga.model;

import lombok.Data;

/**
 * - @author lzqinga
 * - @description
 * - @date 2025/10/11/011 12:00
 **/
@Data
public class TransitionEffect {

    private String type;           // 转场类型：fade, slide, wipe, etc.
    private Double duration;       // 转场时长
    private String direction;      // 方向：left, right, up, down
    private String shape;          // 形状：circle, diamond, etc.

    public static TransitionEffect createDefault() {
        TransitionEffect effect = new TransitionEffect();
        effect.setType("fade");
        effect.setDuration(1.0);
        return effect;
    }

    public static TransitionEffect createSlide(String direction) {
        TransitionEffect effect = new TransitionEffect();
        effect.setType("slide");
        effect.setDuration(1.0);
        effect.setDirection(direction);
        return effect;
    }
}
